package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
//@Select("select * from user where email=#{email} and pwd=#{password}")
    User findEmailAndPwd(@Param("email") String email, @Param("password")String password);


    List<User> findAll();

    void add(User user);

    User findById(String id);

    void update(User user);

    void deleteById(String id);
}
